package com.hellogood.yaohuo.shared.services;

import java.util.List;

import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.hellogood.yaohuo.shared.entity.User;

@RemoteServiceRelativePath("UserService")
public interface UserService extends RemoteService {
	public static class Util {
		private static UserServiceAsync instance;

		public static UserServiceAsync getInstance() {
			if (instance == null) {
				instance = (UserServiceAsync) GWT.create(UserService.class);
			}
			return instance;
		}
	}

	public User checkLogin(String username, String password);

	public List<User> getAllUserList();
	
	public List<User> getUngroupedUserList();
}
